package org.ns.tomdog.server.support;

import org.ns.tomdog.server.HandlerWrapper;
import org.ns.tomdog.servlet.HttpServlet;

import java.util.List;

public class ServletWrapper implements HandlerWrapper {
    private String name;
    private HttpServlet httpServlet;
    private List<String> mappers;

    public ServletWrapper(String name, HttpServlet httpServlet, List<String> mappers) {
        this.name = name;
        this.httpServlet = httpServlet;
        this.mappers = mappers;
    }

    public String getName() {
        return name;
    }

    public HttpServlet getHttpServlet() {
        return httpServlet;
    }

    public List<String> getMappers() {
        return mappers;
    }

    @Override
    public void init() {
        httpServlet.init();
    }

    @Override
    public void start() {

    }

}
